package com.example.Administrator.shoujiweishi.fragments;

import android.view.View;


import com.example.Administrator.shoujiweishi.R;
import com.example.Administrator.shoujiweishi.activities.one_key_sos;
import com.example.Administrator.shoujiweishi.fragments.base.BaseFragment;

/**
 * Created by Administrator on 2017/6/1 0001.
 */

public class FirstFragment extends BaseFragment {

    @Override
    public int getContentXML() {
        return R.layout.first_fragment;
    }

    @Override
    public void initData() {

    }

    @Override
    public void initView() {
        getthisview().findViewById(R.id.btn_sos).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //getFragmentManager().beginTransaction().hide(getActivity().);
                if (getActivity() instanceof one_key_sos){
                    ((one_key_sos) getActivity()).getFragment();
                }
            }
        });
    }
}
